package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.SuccessBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.SetUserEmailIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class SetUserEmailModel extends RetrofitBaseModel implements SetUserEmailIface<SuccessBean> {
    private AllService allService;
    private Retrofit retrofit;
    public SetUserEmailModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }

    @Override
    public void setUserPhone(String userid, String password, String email, String rand, TListener<SuccessBean> tListener) {
        Call<SuccessBean> call = allService.setUserEmail(userid,password,email,rand);
        callenqueue(call,tListener);
    }
}
